package com.lecture.java8.mvel;

import com.greenpineyu.fel.function.CommonFunction;

/**
 * @author luyn
 * @version 1.0
 * @description
 * @date 2021/3/31 14:49
 */
public class AbsFunction extends CommonFunction {
    @Override
    public Object call(Object[] arguments) {
        return Math.abs(Double.parseDouble(arguments[0]+""));
    }

    @Override
    public String getName() {
        return "abs";
    }
}
